package com.wd.nio;

import java.util.concurrent.atomic.AtomicInteger;

import com.wd.entity.server.IServerEntity;

/**
 * @author long
 * @Create 2012-10-12 下午1:51:09
 * @QQ 108232706
 * @version 1.0
 * @description GameData
 */
public final class GameData {
	// 全局，服务器配置文件信息
	public static IServerEntity SERVER;
	// 多线程并发原子操作
	public static AtomicInteger ONLINECOUNT = new AtomicInteger();
	// sessionObject的5个状态
	public static final short WAITINGCHECKUSER = 0;
	public static final short WAITINGCHECKSUCC = 1;
	public static final short CHECKUSERSUCC = 2;
	public static final short READYGAME = 3;
	public static final short NOTRECEIVEDATA = 4;
	public static final short DISCONNECT = 5;

	// 所有玩家的命令列表，sessionobject,cmd,data。dispatcherThread
	public static final short INFREELIST = 0;// 命令，在空闲资源里
	public static final short INADDTOUSELIST = 1;// 命令， 加入使用资源
	public static final short RUNNINGCMD = 2;// 命令， 已分配thread执行状态
	public static final short COMPLETECMD = 3;// 命令， thread执行execute完成状态
	//统计service线程时间
	public static long SERVICESTARTTIME = 0;
	public static long SERVICESTOPTIME = 0;

}
